<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'cliente-form',
	'enableAjaxValidation'=>true,)); ?>

	<p class="note">I campi con l'asterisco <span class="required">*</span> sono obbligatori.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'nome'); ?>
		<?php echo $form->textField($model,'nome',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'nome'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cognome'); ?>
		<?php echo $form->textField($model,'cognome',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'cognome'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'indirizzo'); ?>
		<?php echo $form->textField($model,'indirizzo',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'indirizzo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'citta'); ?>
		<?php echo $form->textField($model,'citta',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'citta'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'telefono'); ?>
		<?php echo $form->textField($model,'telefono',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'telefono'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cellulare'); ?>
		<?php echo $form->textField($model,'cellulare',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'cellulare'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Crea' : 'Salva'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->